package com.zhaiyz.grpcdemo

import io.grpc.ServerBuilder

/**
 * Created by zhaiyz on 2018/1/17.
 */
fun main(args: Array<String>) {
    val server = ServerBuilder.forPort(8080)
            .addService(GreetingServiceGrpcImpl())
            .build()
    server.start()
    server.awaitTermination()
}